package com.beizhen.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 出行计划表
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@AllArgsConstructor
@NoArgsConstructor
@Builder
@JsonInclude(value = JsonInclude.Include.NON_NULL)
@TableName("stu_trip_plan")
@ApiModel(value="StuTripPlan对象", description="出行计划表")
public class StuTripPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键编号")
    @TableId(value = "tp_id", type = IdType.INPUT)
    private Integer tpId;

    @ApiModelProperty(value = "出行名称")
    private String tpName;

    @ApiModelProperty(value = "出发时间")
    private LocalDateTime tpStartTime;

    @ApiModelProperty(value = "返回时间")
    private LocalDateTime tpReturnTime;

    @ApiModelProperty(value = "出行介绍")
    private String tpIntroduce;

    @ApiModelProperty(value = "出行申报状态（1.待申报  ）")
    private Integer tpDeclareStatus;

    @ApiModelProperty(value = "出行状态(1.正在出行  2.已完结)")
    private Integer tpStatus;

    @ApiModelProperty(value = "审批编号")
    private String tpAuditId;

    @ApiModelProperty(value = "审批状态()")
    private Integer tpAuditStatus;

    @ApiModelProperty(value = "(外键)带队老师")
    private Integer ttId;

    @Transient
    @ApiModelProperty(value = "带队老师姓名")//袁康飞修改
    private String ttName;

    @Transient
    @ApiModelProperty(value = "带队老师手机号")//袁康飞修改
    private String ttPhone;

    @ApiModelProperty(value = "（外键）出行学校(学校用户id)")
    private Integer schoolUId;

    @Transient
    @ApiModelProperty(value = "学校名称")//袁康飞修改
    private String tscName;

    @ApiModelProperty(value = "（外键）审核单位(教体局id)")
    private Integer educationUId;

    @ApiModelProperty(value = "（外键）基地ID")
    private Integer bId;

    @ApiModelProperty(value = "（外键）出行班级")
    private Integer tClass;

    @Transient
    @ApiModelProperty(value = "年级")//袁康飞修改
    private String tcGrade;

    @Transient
    @ApiModelProperty(value = "班级")//袁康飞修改
    private String tcClass;

    @Transient
    @ApiModelProperty(value = "学生姓名")//袁康飞修改
    private String tsName;

    @Transient
    @ApiModelProperty(value = "人数")//袁康飞修改
    private Integer tcCount;

    @ApiModelProperty(value = "（外键）车辆")
    private Integer tpCar;

    @ApiModelProperty(value = "（外键）文件夹外键")
    private Integer tpFid;


}